<?php include $this->header();?>
<?php if(false) {?>
<link rel="stylesheet" rev="stylesheet" href="../../../images/admincp/style.css" type="text/css" media="all" />
<?php }?>
<div class="wrap">
<form method="post" enctype="application/x-www-form-urlencoded" target="_self" onsubmit="return Validator.Validate(this)">
<div class="bd p1 mt">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="rank">
    <tr>
        <td align="right" valign="middle">父菜单</td>
        <td>
          <select name="menu_parent_id">
              <option value="0">顶级菜单</option>
			  <?php foreach ($this->_menu as $mnode) {?>
              <option value="<?=$mnode['menu_id']?>" <?php if($item['menu_parent_id'] == $mnode['menu_id']){?>selected="selected"<?php } if(in_array($item['menu_id'], $this->_menu[$item['menu_id']]['chile'])) {?> disabled="disabled"<?php } ?>><?=$mnode['icon']?> <?=$mnode['menu_name']?></option>
              <?php }?>              
          </select>
          <span class=" note">不选择则为顶级菜单</span>
        </td>
    </tr>
    <tr>
        <td width="140" align="right" valign="middle">菜单名称</td>
        <td><input name="menu_name" type="text" class="text-box" id="menu_name" onblur="Validator.check(this)" value="<?=$item['menu_name']?>" size="50" dataType="Require" msg="请填写菜单名称" /> <b class="red">*</b></td>
    </tr>
    <tr>
        <td width="140" align="right" valign="middle">URL</td>
        <td><input name="menu_url" type="text" class="text-box" id="menu_url" value="<?=$item['menu_url']?>" size="50" dataType="Require" msg="请填写菜单URL" onblur="Validator.check(this)" /> <b class="red">*</b></td>
    </tr>
    <tr>
        <td width="140" align="right" valign="middle">排序</td>
        <td><input type="text" class="text-box" name="menu_order" id="menu_order" value="<?=$item['menu_order']?>" /></td>
    </tr>
    <tr>
        <td align="right" valign="middle" class="nobd">&nbsp;</td>
        <td class="nobd"><input class="btn" type="submit" value="编辑" />
            <input name="重置" type="reset" class="btn" value="重置" /></td>
    </tr>
</table>
</div>
</form>
</div>
<?php include $this->footer();?>